package com.slowfly.rule.engine.model;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Setter
@Getter
public class Condition {

    /**
     * true: 简单规则：featureId operator value 字段有值
     * false: 复杂规则：and conditions 字段有值
     */
    private boolean simple;

    /**
     * 字段
     */
    private Integer featureId;

    /**
     * 字段
     */
    private Integer featureType;

    /**
     * eq ge gt le lt
     */
    private String operator;

    /**
     * 值
     */
    private String value;

    /**
     * 与或
     */
    private Boolean and;

    /**
     * 条件
     */
    private List<Condition> conditions;
}
